package com.du.spring5.bean;

import org.springframework.stereotype.Component;

/**
 * @author : DuJiabao
 * @Project : spring
 * @Time : 2021/4/10 15:20
 * @Desc :
 */
@Component
public class Calculator {
  public int add(int x, int y) {
    return x + y;
  }

  public int mul(int x, int y) {
    return x * y;
  }
}
